﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCode2.Models
{
    public class HomeForSale
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        public string AgentUserName { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Address { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public int DaysOnMarket { get; set; }
        public string Heating { get; set; }
        public string YearBuilt { get; set; }
        public string AskingPrice { get; set; }
        public string GeoLocation { get; set; }
        public string MainPicture { get; set; }
        public string Picture1Name { get; set; }
        public string Picture1 { get; set; }
        public string Picture2Name { get; set; }
        public string Picture2 { get; set; }
        public string Picture3Name { get; set; }
        public string Picture3 { get; set; }
        public string Picture4Name { get; set; }
        public string Picture4 { get; set; }
        public string Picture5Name { get; set; }
        public string Picture5 { get; set; }
        public string Movie { get; set; }
        public bool Active { get; set; }
    }

    public class HomeForSaleDBContext : DbContext
    {
        public DbSet<HomeForSale> HomeForSales { get; set; }
    }
}